﻿<%@ 
page language="java" 
import="java.util.*" 
import="com.csd.helper.IConstant"
import="com.csd.helper.Tool"
import="com.csd.helper.ProjectState"
import="com.csd.helper.Cycle"
import="com.csd.helper.Stage"
import="com.csd.pojo.DocumentRecord"
import="com.csd.vo.UserVO"
pageEncoding="UTF-8"
%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@page isELIgnored="false" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
HttpSession s = request.getSession();
UserVO uvo =  (UserVO)s.getAttribute(IConstant.userVO);
if(uvo==null || !uvo.getType().equals(IConstant.teamRole))
{
	response.sendRedirect(path);
}

String user_name = uvo.getName();



Map<Stage,DocumentRecord> stat = (Map<Stage,DocumentRecord>)request.getAttribute("stat");

if(stat==null)
{
	stat = new HashMap<Stage,DocumentRecord>();
}

Boolean finish = true;
Boolean showApplyEnd = false;

String projcycle = (String)request.getAttribute("Cycle");
String projstat = (String)request.getAttribute("projectState");

%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>文档上传</title>
<link href="<%=path %>/student/css/student_right.css" rel="stylesheet" type="text/css" />
</head>
<script type="text/javascript">    
function checkFileSize(fileFiled, alarm)    
{    
   var fso = new ActiveXObject("Scripting.FileSystemObject"); 
   var filepath =  document.getElementById(fileFiled).value;
   var alarm = document.getElementById(alarm);
   alarm.style.display = "none";
     
   if(fso.GetFile(filepath).size > 20*1000*1000)
   {
	   alarm.style.display = "block";
   }
   	    
} 
</script>
<body>
    <div class="main">
        <h1>文档上传</h1>
        <hr />
       	<% if(projstat == null || 
			  projstat.equals(ProjectState.apply) ||
			  projstat.equals(ProjectState.prophase) ||
			  projstat.equals(ProjectState.proHaveScore) ||
			  projstat.equals(ProjectState.prophaseReject) ||
			  projstat.equals(ProjectState.projectEnd) ||
			  projstat.equals(ProjectState.finishApply) ||
			  projstat.equals(ProjectState.projectRejected) ||
			  projstat.equals(ProjectState.waitReview)
			  )
		{
		%>
			<h3>项目记录不可用，你可能暂未申请，或者项目已被冻结</h3>
		<%}else{ %>
		     <% if(projcycle.equals(Cycle.halfYear)) { %>
        <h3>请注意,文件大小不能超过<span>5M</span>。</h3>
        <span style="color:red; font-weight:bold;">注：中期后文档上传功能将在中期评审结束时开放。</span>      
        <table width="100%"> 
            <tr> 
              <td class="table_head" width="150px">提交类型</td>
              <td class="table_head" width="150px">最后修改时间</td> 
              <td class="table_head">上传</td>  
            </tr> 
            <tr> 
              <td>项目申请书</td>
              <%DocumentRecord docStart = stat.get(Stage.applyDocument); %>
              
              <td>
              <%if(docStart != null){ %>
              <%=Tool.dateToString(docStart.getTime()) %>
              <%}else{ 
              finish = false;
              %>                     
              未提交
              <%} %>
              </td>
              <td>  
	              <s:form action="documentUpload.action" method="post"  enctype="multipart/form-data">
	              	<input type="hidden" value="<%=Stage.applyDocument%>" name="stage" />
		            <tr>
		            	<td><input type="file" name="upload" size="15" /></td>
		            	<td>&nbsp;&nbsp;&nbsp;&nbsp;<input type="submit" value="更新" /></td>
		            </tr>  
	              </s:form>
	           </td>
            </tr> 
           
            <tr> 
              <td>第一月度报告</td>
              <%DocumentRecord doc1 = stat.get(Stage.firstDoc); %>              
              <td>
              <%if(doc1 != null){ %>
              <%=Tool.dateToString(doc1.getTime()) %>
              <%}else{ 
              finish = false;
              %>                   
              未提交
              <%} %>
              </td>
              <td>                
	              <s:form action="documentUpload.action" method="post"  enctype="multipart/form-data">
	              	<input type="hidden" name="stage" value="<%=Stage.firstDoc %>" />
		            <tr>
		            	<td><input type="file" name="upload" size="15" /></td>
		            	<td>&nbsp;&nbsp;&nbsp;&nbsp;<input type="submit" value="更新" /></td>
		            </tr>                 
	               </s:form>
	           </td>
            </tr> 
            <tr> 
              <td>第二月度报告</td>
              <%DocumentRecord doc2 = stat.get(Stage.secondDoc); %>
              
              <td>
              <%if(doc2 != null){ %>
              <%=Tool.dateToString(doc2.getTime()) %>
              <%}else{ 
              finish = false;
              %>                     
              未提交
              <%} %>
              </td>
              <td>                
	              <s:form action="documentUpload.action" method="post"  enctype="multipart/form-data">
	              	<input type="hidden" name="stage" value="<%=Stage.secondDoc %>" />
		            <tr>
		            	<td><input type="file" name="upload" size="15" /></td>
		            	<td>&nbsp;&nbsp;&nbsp;&nbsp;<input type="submit" value="更新" /></td>
		            </tr>                     
	              </s:form>
	           </td>
               <td>
               		<span id="alarm3" style="color:#F33; display:none;">文件过大了!</span> 
               </td>
            </tr> 
 
            <tr> 
              <td>第三月度报告</td>
              <%DocumentRecord doc3 = stat.get(Stage.thirdDoc); %>
              
              <td>
              <%if(doc3 != null){ %>
              <%=Tool.dateToString(doc3.getTime()) %>
              <%}else{ 
              finish = false;
              %>                     
              未提交
              <%} %>
              </td>
              <td>                
	              <s:form action="documentUpload.action" method="post"  enctype="multipart/form-data">
	              	<input type="hidden" name="stage" value="<%=Stage.thirdDoc %>" />
		            <tr>
		            	<td><input type="file" name="upload" size="15" /></td>
		            	<td>&nbsp;&nbsp;&nbsp;&nbsp;<input type="submit" value="更新" /></td>
		            </tr>                    
	              </s:form>
	           </td>
            </tr>
            <tr>
            <td>项目中期报告</td>
              <%DocumentRecord docMetap = stat.get(Stage.metapDocument); %>
              
              <td>
              <%if(docMetap != null){ %>
              <%=Tool.dateToString(docMetap.getTime()) %>
              <%}else{ 
              finish = false;
              %>                     
              未提交
              <%} %>
              </td>
              <td>                
	              <s:form action="documentUpload.action" method="post"  enctype="multipart/form-data">
	              	<input type="hidden" name="stage" value="<%=Stage.metapDocument %>" />
		            <tr>
		            	<td><input type="file" name="upload" size="15" /></td>
		            	<td>&nbsp;&nbsp;&nbsp;&nbsp;<input type="submit" value="更新" /></td>
		            </tr>                   
	              </s:form>
	           </td>
            </tr>
            <%if(projstat.equals(ProjectState.metaphaseEnd)) {%>
            <tr> 
              <td>第四月度报告</td>
              <%DocumentRecord doc4 = stat.get(Stage.fourthDoc); %>              
              <td>
              <%if(doc4 != null){ %>
              <%=Tool.dateToString(doc4.getTime()) %>
              <%}else{ 
              finish = false;
              %>               
              未提交
              <%} %>
              </td>
              <td>                
	              <s:form action="documentUpload.action" method="post"  enctype="multipart/form-data">
	              	<input type="hidden" name="stage" value="<%=Stage.fourthDoc %>" />
		            <tr>
		            	<td><input type="file" name="upload" size="15" /></td>
		            	<td>&nbsp;&nbsp;&nbsp;&nbsp;<input type="submit" value="更新" /></td>
		            </tr>                 
	              </s:form>
	           </td>
            </tr>  
            <tr> 
              <td>第五月度报告</td>
              <%DocumentRecord doc5 = stat.get(Stage.fifthDoc); %>
              
              <td>
              <%if(doc5 != null){ %>
              <%=Tool.dateToString(doc5.getTime()) %>
              <%}else{ 
              finish = false;
              %>                      
              未提交
              <%} %>
              </td>
              <td>                
	              <s:form action="documentUpload.action" method="post"  enctype="multipart/form-data">
	              	<input type="hidden" name="stage" value="<%=Stage.fifthDoc %>" />
		            <tr>
		            	<td><input type="file" name="upload" size="15" /></td>
		            	<td>&nbsp;&nbsp;&nbsp;&nbsp;<input type="submit" value="更新" /></td>
		            </tr>                     
	              </s:form>
	           </td>
            </tr>
            <tr><td> 第六月度报告</td>
              <%DocumentRecord doc6 = stat.get(Stage.sixthDoc); %>
              
              <td>
              <%if(doc6 != null){ %>
              <%=Tool.dateToString(doc6.getTime()) %>
              <%}else{ 
              finish = false;
              %>                     
              未提交
              <%} %>
              </td>
              <td>                
	               <s:form action="documentUpload.action" method="post"  enctype="multipart/form-data">
	              	<input type="hidden" name="stage" value="<%=Stage.sixthDoc %>" />
		            <tr>
		            	<td><input type="file" name="upload" size="15" /></td>
		            	<td>&nbsp;&nbsp;&nbsp;&nbsp;<input type="submit" value="更新" /></td>
		            </tr>                    
	              </s:form>
	           </td>
            </tr> 

            <tr>
            <td>项目总结</td>
              <%DocumentRecord docSum = stat.get(Stage.projectSummary); %>
              
              <td>
              <%if(docSum != null){ %>
              <%=Tool.dateToString(docSum.getTime()) %>
              <%}else{ 
              finish = false;
              %>                     
              未提交
              <%} %>
              </td>
              <td>                
	              <s:form action="documentUpload.action" method="post"  enctype="multipart/form-data">
	              	<input type="hidden" name="stage" value="<%=Stage.projectSummary %>" />
		            <tr>
		            	<td><input type="file" name="upload" size="15" /></td>
		            	<td>&nbsp;&nbsp;&nbsp;&nbsp;<input type="submit" value="更新" /></td>
		            </tr>                    
	              </s:form>
	           </td>
            </tr>  
            <tr>
            <td>成果展示</td>
              <%DocumentRecord show = stat.get(Stage.resultShow); %>
              
              <td>
              <%if(show != null){ %>
              <%=Tool.dateToString(show.getTime()) %>
              <%}else{ 
              finish = false;
              %>                    
              未提交
              <%} %>
              </td>
              <td>                
	              <s:form action="documentUpload.action" method="post"  enctype="multipart/form-data">
	              	<input type="hidden" name="stage" value="<%=Stage.resultShow %>" />
		            <tr>
		            	<td><input type="file" name="upload" size="15" /></td>
		            	<td>&nbsp;&nbsp;&nbsp;&nbsp;<input type="submit" value="更新" /></td>
		            </tr>                 
	              </s:form>
	           </td>
            </tr> 
            <tr>
            <td>项目打包</td>
              <%DocumentRecord pack = stat.get(Stage.projectPackage); %>
              
              <td>
              <%if(pack != null){ %>
              <%=Tool.dateToString(pack.getTime()) %>
              <%}else{ 
              finish = false;
              %>                     
              未提交
              <%} %>
              </td>
              <td>                
	              <s:form action="documentUpload.action" method="post"  enctype="multipart/form-data">
	              	<input type="hidden" name="stage" value="<%=Stage.projectPackage %>" />
		            <tr>
		            	<td><input type="file" name="upload" size="15" /></td>
		            	<td>&nbsp;&nbsp;&nbsp;&nbsp;<input type="submit" value="更新" /></td>
		            </tr>                   
	              </s:form>
	           </td>
            </tr>           
            <%showApplyEnd = true; }else{ %>
            
            <%} %>
            <%if(finish && showApplyEnd) {%>
            <tr> 
              <td colspan="4" align="center">
              <% if( projstat.equals(ProjectState.finishApply) || projstat.equals(ProjectState.telophasePass) || projstat.equals(ProjectState.finishCheck)){ %>              
                   
                    <%}else{ %>
                    <a href="<%=path %>/projectApplyEnd.action">申请结题</a>
                    <%} %>			
              </td> 
            </tr> 
        	<%} %>
        </table> 
            <% } else 
            if (projcycle.equals(Cycle.wholeYear)) {%>
                    <h3>请注意,文件大小不能超过<span>5M</span>。</h3>
        <span style="color:red; font-weight:bold;">注：中期后文档上传功能将在中期评审结束时开放。</span>      
        <table width="100%"> 
            <tr> 
              <td class="table_head" width="150px">提交类型</td>
              <td class="table_head" width="150px">最后修改时间</td> 
              <td class="table_head">上传</td>  
            </tr> 
            <tr> 
              <td>项目申请书</td>
              <%DocumentRecord docStart = stat.get(Stage.applyDocument); %>
              
              <td>
              <%if(docStart != null){ %>
              <%=Tool.dateToString(docStart.getTime()) %>
              <%}else{ 
              finish = false;
              %>                     
              未提交
              <%} %>
              </td>
              <td>  
	              <s:form action="documentUpload.action" method="post"  enctype="multipart/form-data">
	              	<input type="hidden" value="<%=Stage.applyDocument%>" name="stage" />
		            <tr>
		            	<td><input type="file" name="upload" size="15" /></td>
		            	<td>&nbsp;&nbsp;&nbsp;&nbsp;<input type="submit" value="更新" /></td>
		            </tr>  
	              </s:form>
	           </td>
            </tr> 
           
            <tr> 
              <td>第一月度报告</td>
              <%DocumentRecord doc1 = stat.get(Stage.firstDoc); %>              
              <td>
              <%if(doc1 != null){ %>
              <%=Tool.dateToString(doc1.getTime()) %>
              <%}else{ 
              finish = false;
              %>                   
              未提交
              <%} %>
              </td>
              <td>                
	              <s:form action="documentUpload.action" method="post"  enctype="multipart/form-data">
	              	<input type="hidden" name="stage" value="<%=Stage.firstDoc %>" />
		            <tr>
		            	<td><input type="file" name="upload" size="15" /></td>
		            	<td>&nbsp;&nbsp;&nbsp;&nbsp;<input type="submit" value="更新" /></td>
		            </tr>                 
	               </s:form>
	           </td>
            </tr> 
            <tr> 
              <td>第二月度报告</td>
              <%DocumentRecord doc2 = stat.get(Stage.secondDoc); %>
              
              <td>
              <%if(doc2 != null){ %>
              <%=Tool.dateToString(doc2.getTime()) %>
              <%}else{ 
              finish = false;
              %>                     
              未提交
              <%} %>
              </td>
              <td>                
	              <s:form action="documentUpload.action" method="post"  enctype="multipart/form-data">
	              	<input type="hidden" name="stage" value="<%=Stage.secondDoc %>" />
		            <tr>
		            	<td><input type="file" name="upload" size="15" /></td>
		            	<td>&nbsp;&nbsp;&nbsp;&nbsp;<input type="submit" value="更新" /></td>
		            </tr>                     
	              </s:form>
	           </td>
               <td>
               		<span id="alarm3" style="color:#F33; display:none;">文件过大了!</span> 
               </td>
            </tr> 
 
            <tr> 
              <td>第三月度报告</td>
              <%DocumentRecord doc3 = stat.get(Stage.thirdDoc); %>
              
              <td>
              <%if(doc3 != null){ %>
              <%=Tool.dateToString(doc3.getTime()) %>
              <%}else{ 
              finish = false;
              %>                     
              未提交
              <%} %>
              </td>
              <td>                
	              <s:form action="documentUpload.action" method="post"  enctype="multipart/form-data">
	              	<input type="hidden" name="stage" value="<%=Stage.thirdDoc %>" />
		            <tr>
		            	<td><input type="file" name="upload" size="15" /></td>
		            	<td>&nbsp;&nbsp;&nbsp;&nbsp;<input type="submit" value="更新" /></td>
		            </tr>                    
	              </s:form>
	           </td>
            </tr>

            <tr> 
              <td>第四月度报告</td>
              <%DocumentRecord doc4 = stat.get(Stage.fourthDoc); %>
              
              <td>
              <%if(doc4 != null){ %>
              <%=Tool.dateToString(doc4.getTime()) %>
              <%}else{ 
              finish = false;
              %>                     
              未提交
              <%} %>
              </td>
              <td>                
	              <s:form action="documentUpload.action" method="post"  enctype="multipart/form-data">
	              	<input type="hidden" name="stage" value="<%=Stage.fourthDoc %>" />
		            <tr>
		            	<td><input type="file" name="upload" size="15" /></td>
		            	<td>&nbsp;&nbsp;&nbsp;&nbsp;<input type="submit" value="更新" /></td>
		            </tr>                    
	              </s:form>
	           </td>
            </tr>
            
            <tr> 
              <td>第五月度报告</td>
              <%DocumentRecord doc5 = stat.get(Stage.fifthDoc); %>
              
              <td>
              <%if(doc5 != null){ %>
              <%=Tool.dateToString(doc5.getTime()) %>
              <%}else{ 
              finish = false;
              %>                     
              未提交
              <%} %>
              </td>
              <td>                
	              <s:form action="documentUpload.action" method="post"  enctype="multipart/form-data">
	              	<input type="hidden" name="stage" value="<%=Stage.fifthDoc %>" />
		            <tr>
		            	<td><input type="file" name="upload" size="15" /></td>
		            	<td>&nbsp;&nbsp;&nbsp;&nbsp;<input type="submit" value="更新" /></td>
		            </tr>                    
	              </s:form>
	           </td>
            </tr>
            
                        
            <tr> 
              <td>第六月度报告</td>
              <%DocumentRecord doc6 = stat.get(Stage.sixthDoc); %>
              
              <td>
              <%if(doc6 != null){ %>
              <%=Tool.dateToString(doc6.getTime()) %>
              <%}else{ 
              finish = false;
              %>                     
              未提交
              <%} %>
              </td>
              <td>                
	              <s:form action="documentUpload.action" method="post"  enctype="multipart/form-data">
	              	<input type="hidden" name="stage" value="<%=Stage.sixthDoc %>" />
		            <tr>
		            	<td><input type="file" name="upload" size="15" /></td>
		            	<td>&nbsp;&nbsp;&nbsp;&nbsp;<input type="submit" value="更新" /></td>
		            </tr>                    
	              </s:form>
	           </td>
            </tr>
            
            <tr>
            <td>项目中期报告</td>
              <%DocumentRecord docMetap = stat.get(Stage.metapDocument); %>
              
              <td>
              <%if(docMetap != null){ %>
              <%=Tool.dateToString(docMetap.getTime()) %>
              <%}else{ 
              finish = false;
              %>                     
              未提交
              <%} %>
              </td>
              <td>                
	              <s:form action="documentUpload.action" method="post"  enctype="multipart/form-data">
	              	<input type="hidden" name="stage" value="<%=Stage.metapDocument %>" />
		            <tr>
		            	<td><input type="file" name="upload" size="15" /></td>
		            	<td>&nbsp;&nbsp;&nbsp;&nbsp;<input type="submit" value="更新" /></td>
		            </tr>                   
	              </s:form>
	           </td>
            </tr>
            <%if(projstat.equals(ProjectState.metaphaseEnd)) {%>
            <tr> 
              <td>第七月度报告</td>
              <%DocumentRecord doc7 = stat.get(Stage.seventhDoc); %>              
              <td>
              <%if(doc7 != null){ %>
              <%=Tool.dateToString(doc7.getTime()) %>
              <%}else{ 
              finish = false;
              %>               
              未提交
              <%} %>
              </td>
              <td>                
	              <s:form action="documentUpload.action" method="post"  enctype="multipart/form-data">
	              	<input type="hidden" name="stage" value="<%=Stage.seventhDoc %>" />
		            <tr>
		            	<td><input type="file" name="upload" size="15" /></td>
		            	<td>&nbsp;&nbsp;&nbsp;&nbsp;<input type="submit" value="更新" /></td>
		            </tr>                 
	              </s:form>
	           </td>
            </tr>  
            <tr> 
              <td>第八月度报告</td>
              <%DocumentRecord doc8 = stat.get(Stage.eighthDoc); %>
              
              <td>
              <%if(doc8 != null){ %>
              <%=Tool.dateToString(doc8.getTime()) %>
              <%}else{ 
              finish = false;
              %>                      
              未提交
              <%} %>
              </td>
              <td>                
	              <s:form action="documentUpload.action" method="post"  enctype="multipart/form-data">
	              	<input type="hidden" name="stage" value="<%=Stage.eighthDoc %>" />
		            <tr>
		            	<td><input type="file" name="upload" size="15" /></td>
		            	<td>&nbsp;&nbsp;&nbsp;&nbsp;<input type="submit" value="更新" /></td>
		            </tr>                     
	              </s:form>
	           </td>
            </tr>
            <tr><td> 第九月度报告</td>
              <%DocumentRecord doc9 = stat.get(Stage.ninthDoc); %>
              
              <td>
              <%if(doc9 != null){ %>
              <%=Tool.dateToString(doc9.getTime()) %>
              <%}else{ 
              finish = false;
              %>                     
              未提交
              <%} %>
              </td>
              <td>                
	               <s:form action="documentUpload.action" method="post"  enctype="multipart/form-data">
	              	<input type="hidden" name="stage" value="<%=Stage.ninthDoc %>" />
		            <tr>
		            	<td><input type="file" name="upload" size="15" /></td>
		            	<td>&nbsp;&nbsp;&nbsp;&nbsp;<input type="submit" value="更新" /></td>
		            </tr>                    
	              </s:form>
	           </td>
            </tr> 
            <tr><td> 第十月度报告</td>
              <%DocumentRecord doc10 = stat.get(Stage.tenthDoc); %>
              
              <td>
              <%if(doc10 != null){ %>
              <%=Tool.dateToString(doc10.getTime()) %>
              <%}else{ 
              finish = false;
              %>                     
              未提交
              <%} %>
              </td>
              <td>                
	               <s:form action="documentUpload.action" method="post"  enctype="multipart/form-data">
	              	<input type="hidden" name="stage" value="<%=Stage.tenthDoc %>" />
		            <tr>
		            	<td><input type="file" name="upload" size="15" /></td>
		            	<td>&nbsp;&nbsp;&nbsp;&nbsp;<input type="submit" value="更新" /></td>
		            </tr>                    
	              </s:form>
	           </td>
            </tr> 
            
                        <tr><td> 第十一月度报告</td>
              <%DocumentRecord doc11 = stat.get(Stage.eleventhDoc); %>
              
              <td>
              <%if(doc11 != null){ %>
              <%=Tool.dateToString(doc11.getTime()) %>
              <%}else{ 
              finish = false;
              %>                     
              未提交
              <%} %>
              </td>
              <td>                
	               <s:form action="documentUpload.action" method="post"  enctype="multipart/form-data">
	              	<input type="hidden" name="stage" value="<%=Stage.eleventhDoc %>" />
		            <tr>
		            	<td><input type="file" name="upload" size="15" /></td>
		            	<td>&nbsp;&nbsp;&nbsp;&nbsp;<input type="submit" value="更新" /></td>
		            </tr>                    
	              </s:form>
	           </td>
            </tr> 
            
                        <tr><td> 第十二月度报告</td>
              <%DocumentRecord doc12 = stat.get(Stage.twelfthDoc); %>
              
              <td>
              <%if(doc12 != null){ %>
              <%=Tool.dateToString(doc12.getTime()) %>
              <%}else{ 
              finish = false;
              %>                     
              未提交
              <%} %>
              </td>
              <td>                
	               <s:form action="documentUpload.action" method="post"  enctype="multipart/form-data">
	              	<input type="hidden" name="stage" value="<%=Stage.twelfthDoc %>" />
		            <tr>
		            	<td><input type="file" name="upload" size="15" /></td>
		            	<td>&nbsp;&nbsp;&nbsp;&nbsp;<input type="submit" value="更新" /></td>
		            </tr>                    
	              </s:form>
	           </td>
            </tr> 
            

            <tr>
            <td>项目总结</td>
              <%DocumentRecord docSum = stat.get(Stage.projectSummary); %>
              
              <td>
              <%if(docSum != null){ %>
              <%=Tool.dateToString(docSum.getTime()) %>
              <%}else{ 
              finish = false;
              %>                     
              未提交
              <%} %>
              </td>
              <td>                
	              <s:form action="documentUpload.action" method="post"  enctype="multipart/form-data">
	              	<input type="hidden" name="stage" value="<%=Stage.projectSummary %>" />
		            <tr>
		            	<td><input type="file" name="upload" size="15" /></td>
		            	<td>&nbsp;&nbsp;&nbsp;&nbsp;<input type="submit" value="更新" /></td>
		            </tr>                    
	              </s:form>
	           </td>
            </tr>  
            <tr>
            <td>成果展示</td>
              <%DocumentRecord show = stat.get(Stage.resultShow); %>
              
              <td>
              <%if(show != null){ %>
              <%=Tool.dateToString(show.getTime()) %>
              <%}else{ 
              finish = false;
              %>                    
              未提交
              <%} %>
              </td>
              <td>                
	              <s:form action="documentUpload.action" method="post"  enctype="multipart/form-data">
	              	<input type="hidden" name="stage" value="<%=Stage.resultShow %>" />
		            <tr>
		            	<td><input type="file" name="upload" size="15" /></td>
		            	<td>&nbsp;&nbsp;&nbsp;&nbsp;<input type="submit" value="更新" /></td>
		            </tr>                 
	              </s:form>
	           </td>
            </tr> 
            <tr>
            <td>项目打包</td>
              <%DocumentRecord pack = stat.get(Stage.projectPackage); %>
              
              <td>
              <%if(pack != null){ %>
              <%=Tool.dateToString(pack.getTime()) %>
              <%}else{ 
              finish = false;
              %>                     
              未提交
              <%} %>
              </td>
              <td>                
	              <s:form action="documentUpload.action" method="post"  enctype="multipart/form-data">
	              	<input type="hidden" name="stage" value="<%=Stage.projectPackage %>" />
		            <tr>
		            	<td><input type="file" name="upload" size="15" /></td>
		            	<td>&nbsp;&nbsp;&nbsp;&nbsp;<input type="submit" value="更新" /></td>
		            </tr>                   
	              </s:form>
	           </td>
            </tr>           
            <%showApplyEnd = true; }else{ %>
            
            <%} %>
            <%if(finish && showApplyEnd) {%>
            <tr> 
              <td colspan="4" align="center">
              <% if( projstat.equals(ProjectState.finishApply) || projstat.equals(ProjectState.telophasePass) || projstat.equals(ProjectState.finishCheck)){ %>              
                   
                    <%}else{ %>
                    <a href="<%=path %>/projectApplyEnd.action">申请结题</a>
                    <%} %>			
              </td> 
            </tr> 
        	<%} %>
        </table>
            
            
            
            
            <% } %>
        <%} %>
      
    </div>
</body>
</html>

